package creationalPatterns.factorymethod;

public class FactoryA implements AbstractFactory {

	@Override
	public AbstractProduct createProduct(String name) {
		if(name.equals("ProductA")){
			return new ProductA();
		}
		else if(name.equals("ProductB")){
			return new ProductB();
		}
		else{
			return null;
		}
	}

}
